package com.ruoyi.repayment.service;


import com.ruoyi.repayment.mapper.LoanProductMapper;
import com.ruoyi.repayment.pojo.LoanProduct;
import com.ruoyi.repayment.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService {
    @Autowired
    LoanProductMapper loanProductMapper;

    public List<LoanProduct> ProductList() {
        List<LoanProduct> loanProducts=loanProductMapper.ProductList();
        return loanProducts;
    }

    public Product findById(Long id) {
        Product p=loanProductMapper.findById(id);
        return p;
    }
}
